package com.woniuxy.business.mapper;

import com.woniuxy.entity.Bank;
import com.woniuxy.entity.Collateral;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 担保物的mapper接口
 */
@Mapper
public interface CollateralMapper {
    //添加
    void insertCollateral(Collateral collateral);
    //根据担保物编号删除
    void deleteCollateral(String collateral_num);
    //分页查询
    List<Collateral> selectCollateralByPage(@Param("collateral_num")String collateral_num, @Param("collateral_type")String collateral_type,
                      @Param("pageIndex")int pageIndex,@Param("pageSize")int pageSize);
    //根据担保物标号查询
    Collateral selectCollateralByCollateralNum(String collateral_num);
    //查询所有担保物类型
    List<Collateral> selectCollateralType();
}
